if (isDedicated) exitWith { };

if (isNil "TYR_MENU_IsActive" || {TYR_MENU_IsActive <= 0}) then {
	[localize "STR_TAW_VD_ACTION","[] spawn TAWVD_fnc_openTAWVD;"] call mso_core_fnc_updateMenu;
} else {
	if (!isnil "tyr_fnc_addHandler") then {
		["TYRMENU",
			[[
				"View distance"
				,{true}
				,{[] spawn TAWVD_fnc_openTAWVD;}
				,"tmf\core\modules\taw_vd\viewdist.paa"
			]]
		] call tyr_fnc_addHandler;
	};
};